﻿Public Class debug_console

    Private Sub debug_console_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
        e.Cancel = True
        saveDialog.ShowDialog()

    End Sub

    Private Sub debug_console_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub saveDialog_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles saveDialog.FileOk
        System.IO.File.WriteAllText(saveDialog.FileName, consoleBox.Text)
        Me.Hide()
    End Sub
End Class